<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>黑巴曼系统</title>

    <link rel="shortcut icon" href="/logo.ico">
    <link href="__STATIC__/index/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/index/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="__STATIC__/index/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/index/css/style.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg hmb_body">
<header class="header">
    <img src="__STATIC__/index/img/logo.png" alt="">
    <div class="header_div">
        <div>黑曼巴系统</div>
        <div>HEIMANBA</div>
    </div>
    <a href="javascript:void(0)" class="roll-nav roll-right J_tabExit" onclick="up_login()">
        <i class="fa fa fa-sign-out"></i>退出
    </a>
</header>

<!-- 全局js -->
<script src="__STATIC__/index/js/jquery.min.js?v=2.1.4"></script>
<script src="__STATIC__/index/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__STATIC__/index/js/footable.all.min.js"></script>
<script src="__STATIC__/index/js/jquery.cookie.js"></script>
<!-- ECharts -->
<script src="__STATIC__/index/js/echarts-all.js"></script>
<!--ECharts demo data-->
<!--<script src="__STATIC__/index/js/demo/echarts-demo.js"></script>-->
<!--自定义js-->
<!--<script src="__STATIC__/index/js/content.js?v=1.0.0"></script>-->
<script src="__STATIC__/admin/js/plugins/layer/layer.min.js"></script>
<script type="text/javascript">
   // alert('dfdsf')
   $(function (){
         

    $(document).on('c', function (){
        console.log('dfdf')
    })

    //$(document).trigger('c')
    $(document).on('back', function(){
        window.history.go(-1)
    })

    $(document).on('reload', function(e, index){
        var w = parent.document.querySelectorAll(".J_iframe")[index].contentWindow
         var url = w.location.href;
        console.log(url)
        w.location.href = url;
    })
   })

   function up_login(){
       $.ajax({
           url:"{:url('Login/up_login')}",
           type:'POST',
           data:'',
           async:false,
           processData:false,
           contentType:false,
           success:function(result) {
               var index = parent.layer.alert('欢迎在使用!', {
                   skin: 'layui-layer-molv' //样式类名
                   ,closeBtn: 0
               }, function(){
                   window.location.reload();
               });
           }
       });
   }
   // document.documentElement
</script>

<div class=" ">

    <div class="row">
        <div class="hmb_nav">
            <a href="{:url('Index/index')}?nav_url=index" class="index hmb_active" >首页</a>
            <a href="{:url('Recharge/index')}?nav_url=recharge" class="recharge" >充值记录</a>
            <a href="{:url('Spread/index')}?nav_url=spread" class="spread" >推广设置</a>
            <a href="{:url('Admin/index')}?nav_url=admin" class="admin" >账户设置</a>
        </div>
<script>
    $(function(){
        var str = window.location.search;
        var patt1 = new RegExp('page');
        var result = patt1.test(str);
        if (result == true) {
            var arr = window.location.search.split('&');
            var nav_url = arr[0].split('=');
        }else {
            var nav_url = window.location.search.split('=');
        }
        $('.' + nav_url[1]).addClass('hmb_active').siblings().removeClass('hmb_active');
    });
</script>